package com.liuyu.common.framework.spring.applicationlistener;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @ClassName ApplicationListernerTest
 * @Author: liuyu
 * @Date: Created in 2021/8/16 23:42
 * @Version:
 * @Modified By:
 */
@Component
@Slf4j
public class ApplicationListernerTest implements ApplicationListener<ApplicationEvent> {
    /**
     * Handle an application event.
     * @param event the event to respond to
     */
    @Override
    public void onApplicationEvent(ApplicationEvent event) {
        log.error("ApplicationEvent 调用");
    }
}
